import {Component, Input} from '@angular/core';
import {NavController, ModalController} from 'ionic-angular';
import {ReplyModel} from "../reply-list/reply-list";
import {ContentCardType} from "../../model/content-card-type";

/*
 Generated class for the MessageBoard page.

 See http://ionicframework.com/docs/v2/components/#navigation for more info on
 Ionic pages and navigation.
 */
@Component({
  selector: 'content-card',
  templateUrl: 'content-card.html'
})
export class ContentCard {

  @Input()
  name: string = '';
  @Input()
  title: string = '';
  @Input()
  text: string = '';

  @Input()
  author: string = '';

  @Input()
  imgUrls: Array<string> = [];

  @Input()
  comments: Array<ReplyModel> = [];

  @Input()
  id: number = 0;

  @Input()
  contentCardType: ContentCardType;

  @Input()
  created_at: Date;

  constructor(public navCtrl: NavController,
              public modalCtrl: ModalController) {
  }


}
